package com.qyer.search.db;

import com.qyer.commons.persistence.AbstractRedisOperator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * User: Z J Wu Date: 2015/11/23 Time: 10:53 Package: com.qyer.dsp.db
 */

public class SearchResultRedisOperator extends AbstractRedisOperator {

  private static final Logger LOGGER = LoggerFactory.getLogger(SearchResultRedisOperator.class);

  private static class InnerHolder {

    private static final SearchResultRedisOperator INSTANCE = new SearchResultRedisOperator();
  }

  private SearchResultRedisOperator() {
    String file = "redis.search_result.properties";
    try {
      initByLocalConf(file);
    } catch (Exception e) {
      LOGGER.error("Cannot load local config file(" + file + ").", e);
    }
  }

  public static SearchResultRedisOperator getInstance() {
    return InnerHolder.INSTANCE;
  }
}
